package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TestSysDept666Mapper;
import com.ruoyi.system.domain.TestSysDept666;
import com.ruoyi.system.service.ITestSysDept666Service;

/**
 * 风机表666Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
@Service
public class TestSysDept666ServiceImpl implements ITestSysDept666Service 
{
    @Autowired
    private TestSysDept666Mapper testSysDept666Mapper;

    /**
     * 查询风机表666
     * 
     * @param deptId 风机表666主键
     * @return 风机表666
     */
    @Override
    public TestSysDept666 selectTestSysDept666ByDeptId(Integer deptId)
    {
        return testSysDept666Mapper.selectTestSysDept666ByDeptId(deptId);
    }

    /**
     * 查询风机表666列表
     * 
     * @param testSysDept666 风机表666
     * @return 风机表666
     */
    @Override
    public List<TestSysDept666> selectTestSysDept666List(TestSysDept666 testSysDept666)
    {
        return testSysDept666Mapper.selectTestSysDept666List(testSysDept666);
    }

    /**
     * 新增风机表666
     * 
     * @param testSysDept666 风机表666
     * @return 结果
     */
    @Override
    public int insertTestSysDept666(TestSysDept666 testSysDept666)
    {
        testSysDept666.setCreateTime(DateUtils.getNowDate());
        return testSysDept666Mapper.insertTestSysDept666(testSysDept666);
    }

    /**
     * 修改风机表666
     * 
     * @param testSysDept666 风机表666
     * @return 结果
     */
    @Override
    public int updateTestSysDept666(TestSysDept666 testSysDept666)
    {
        testSysDept666.setUpdateTime(DateUtils.getNowDate());
        return testSysDept666Mapper.updateTestSysDept666(testSysDept666);
    }

    /**
     * 批量删除风机表666
     * 
     * @param deptIds 需要删除的风机表666主键
     * @return 结果
     */
    @Override
    public int deleteTestSysDept666ByDeptIds(Integer[] deptIds)
    {
        return testSysDept666Mapper.deleteTestSysDept666ByDeptIds(deptIds);
    }

    /**
     * 删除风机表666信息
     * 
     * @param deptId 风机表666主键
     * @return 结果
     */
    @Override
    public int deleteTestSysDept666ByDeptId(Integer deptId)
    {
        return testSysDept666Mapper.deleteTestSysDept666ByDeptId(deptId);
    }
}
